#include "ahxgwnet.h"

namespace ahxgwnet {

void Log::logMessage(const char *fmt, const char *file, const char *func, int line, ...)
{
    time_t t;
    
    t = time(0);
    char *p = ctime(&t);
    p[strlen(p) - 1] = 0;
    printf("[%s] %s %s %d : ", p, file, func, line);
    va_list args;
    va_start(args, line);
    vprintf(fmt, args);
    va_end(args);
    fflush(stdout);
}

}
